//apps
import Dashboard from "../views/apps/Dashboard.vue";

//pages
import Login from "../views/pages/authentication/Login.vue";
import Login2 from "../views/pages/authentication/Login2.vue";
import Register from "../views/pages/authentication/Register.vue";
import ForgotPassword from "../views/pages/authentication/ForgotPassword.vue";
import Profile from "../views/pages/Profile.vue";
import NotFound from "../views/pages/NotFound.vue";

import Building from "../views/pages/setting/Building.vue";
import MeetingRoom from "../views/pages/setting/MeetingRoom.vue";
import Facility from "../views/pages/setting/Facility.vue";
import ChangePassword from "../views/pages/setting/ChangePassword.vue";
import AccessDeny from "../views/pages/AccessDeny.vue";

import Booking from "../views/apps/Booking.vue";
import UserManagement from "../views/apps/UserManagement";
import layouts from "../layout";

///import store from "../store";

const routes = [
  {
    path: "/",
    alias: "/dashboard",
    name: "dashboard",
    component: Dashboard,
    meta: {
      requiresAuth: true,
      roles: ["Admin", "Employee"],
      layout: layouts.navLeft,
      searchable: true,
      tags: ["app"],
    },
  },
  {
    path: "/booking",
    name: "booking",
    component: Booking,
    meta: {
      requiresAuth: true,
      roles: ["Admin", "Employee"],
      layout: layouts.navLeft,
      searchable: true,
      tags: ["app"],
    },
  },
  {
    path: "/users",
    name: "users",
    component: UserManagement,
    meta: {
      requiresAuth: true,
      roles: ["Admin"],
      layout: layouts.navLeft,
      searchable: true,
      tags: ["app"],
    },
  },
  {
    path: "/profile",
    name: "profile",
    component: Profile,
    meta: {
      requiresAuth: true,
      roles: ["Admin", "Employee"],
      layout: layouts.navLeft,
      searchable: true,
      tags: ["pages"],
    },
  },
  {
    path: "/login",
    name: "login",
    component: Login,
    meta: {
      layout: layouts.contentOnly,
    },
  },
  {
    path: "/register",
    name: "register",
    component: Register,
    meta: {
      layout: layouts.contentOnly,
    },
  },
  {
    path: "/forgot-password",
    name: "forgotpassword",
    component: ForgotPassword,
    meta: {
      layout: layouts.contentOnly,
    },
  },
  {
    path: "/logout",
    name: "logout",
  },
  {
    path: "/access-deny",
    name: "AccessDeny",
    component: AccessDeny,
    meta: {
      layout: layouts.navLeft,
    },
  },
  {
    path: "/building",
    name: "building",
    component: Building,
    meta: {
      requiresAuth: true,
      roles: ["Admin"],
      layout: layouts.navLeft,
    },
  },
  {
    path: "/meetingroom",
    name: "meetingroom",
    component: MeetingRoom,
    meta: {
      requiresAuth: true,
      roles: ["Admin"],
      layout: layouts.navLeft,
    },
  },
  {
    path: "/facility",
    name: "facility",
    component: Facility,
    meta: {
      requiresAuth: true,
      roles: ["Admin"],
      layout: layouts.navLeft,
    },
  },
  {
    path: "/change-password",
    name: "changepassword",
    component: ChangePassword,
    meta: {
      layout: layouts.navLeft,
    },
  },
  {
    path: "*",
    name: "not-found",
    component: NotFound,
    meta: {
      layout: layouts.navLeft,
    },
  },
];

export default routes;
